import request from '@/utils/request'

export function listrecHead(query) {
  return request({
    url: '/purchase/recHead/list',
    method: 'get',
    params: query
  })
}

export function createrecHead(data) {
  return request({
    url: '/purchase/recHead/create',
    method: 'post',
    data
  })
}

export function readrecHead(data) {
  return request({
    url: '/purchase/recHead/get/' + data.id,
    method: 'get'
  })
}

export function updaterecHead(data) {
  return request({
    url: '/purchase/recHead/update',
    method: 'post',
    data
  })
}

export function deleterecHead(data) {
  return request({
    url: '/purchase/recHead/delete/' + data.fbillno,
    method: 'delete'
  })
}
